# 关键字
# 落库
# 全字段比对
import json

import data
from deepdiff import DeepDiff

from basics.parser_files import parser_json


# dict1 = {"name1": "John", "age": 30, "hobbies": ["reading","swimming"]}
# dict2 = {"name": "John", "age": 30, "hobbies": ["reading","traveling"]}
# diff = DeepDiff(dict1, dict2)
# print(list(dict(diff).keys()))
def check_all_key(old_data, new_data):
    result = DeepDiff(old_data, new_data)
    if "dictionary_item_added" in list(dict(result).keys()) and "dictionary_item_removed" in list(dict(result).keys()):
        return False
    else:
        return True




